package com.baidu.hao.service.imp;

import com.baidu.hao.bean.User;
import com.baidu.hao.dao.UserMapper;
import com.baidu.hao.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public void delete(Integer id) {
        userMapper.delete(id);
    }

    @Override
    public void add(User user, String addImgId) {
        userMapper.add(user,addImgId);
    }

    @Override
    public void update(User user, String updateImgId) {
        userMapper.update(user,updateImgId);
    }
}
